import { Component, OnInit } from '@angular/core';
import { ApiService } from '../../../providers/ApiPro.service';

@Component({
  selector: 'app-HuoMainTmp',
  templateUrl: './HuoMainTmp.component.html',
  styleUrls: ['./HuoMainTmp.component.scss']
})
export class HuoMainTmpComponent implements OnInit {

  public homepage:any = [];
  constructor(
    public apiService: ApiService
  ) { }

  ngOnInit() {
    this.findhomepage();
  }

  findhomepage() {
    let url = "findhomepage";
    this.apiService.get(url, {}).then(res => {
      console.log(res);
      this.homepage = res.result;
    })
      .catch(err => {
        console.log(err);
      })
  }
}
